<?php


namespace app\validate;


use think\Validate;

class Submit extends Validate
{
    protected $rule = [
        'submit_ago'=>'require',
        'submit_name'=>'require',
        'submit_phone'=>'require|mobile',
    ];
    protected $field = [
        'submit_ago'=>'年龄',
        'submit_name'=>'称呼',
        'submit_phone'=>'手机',
    ];
    protected $scene = [
        'submit_name' => ['submit_name'],
    ];
}